/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package strategies;

import html.XHtmlFormatter;

/**
 *
 * @author Alejandro
 */
public class JavascriptWarningStrategy implements Strategy {

    @Override
    public void execute(WebContext ctx) {
        XHtmlFormatter provider = ctx.getWebFormatter();
        provider.startDiv("", "operationResult");
        provider.echo("<noscript>");
        provider.putWarning(localization.Localization.getString("JavascriptNotEnabled"));
        provider.echo("</noscript>");
        provider.endDiv();
    }

}
